package toanstt.com;

public class CallBackFunction 
{
	static public 	int BUY_CELL =1;
	static public int BUY_LUCKY =2;
	static public int BUY_MANA =3;
	static public int BUY_EXIT =4;
	static public int BUY_BOOM =5;
	static public int BUY_MAGIC =6;
	public CallBackFunction()
	{
		
	}
	public void Update()
	{
		if(T.YES_NO_QR == 0)
			return;
		switch(T.YES_NO_QR)
		{
		case 1:
			T.PLAY_NUMCELL_LOCK--;
			T.PLAY_GOLD-=5000;
			break;
		case 2:
			T.PLAY_LUCKY++;
			T.PLAY_GOLD-=10000;
			break;
		case 3:
			T.PLAY_MANASIZE+=20;
			T.PLAY_GOLD-=20000;
			break;
		case 4:
			T.saveGame();
			DiamondLinkinActivity.activity.finish();
			break;	
		case 5:
			T.PLAY_BOOM_LEVEL++;
			T.PLAY_GOLD-=5000;
			break;
		case 6:
			T.PLAY_MAGIC_LEVEL++;
			T.PLAY_GOLD-=30000;
			break;
		}
		T.YES_NO_QR =0;
		T.saveGame();
		
	}
}
